﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ListProduct.aspx.cs" Inherits="KTSonline.ajax.ListProduct" %>

<% if(!hasItems) {%>
<center>Không có sản phẩm nào phù hợp</center>
<%} %>

<asp:DataList runat="server" id="ListSP" RepeatColumns="4" 
    ShowFooter="False" ShowHeader="False" CellPadding="0" CellSpacing="11" 
    Font-Bold="False" Font-Italic="False" Font-Overline="False" 
    Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center" 
    RepeatDirection="Horizontal">
    <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" 
        Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center" 
        VerticalAlign="Middle" />
    <ItemTemplate>
        <div class="pdtop"></div>
        <div class="product">
            <%# spmoi(Eval("sanphammoi"))%>
            <%# sphot(Eval("sanphamhot"))%>
            <a href="Product.aspx?id=<%#Eval("id") %>"><img class="productpic" src="<%#Eval("thumbnail") %>" alt="<%#Eval("tenmay") %>" width="150" height="150"/></a>
            <div class="productname"><a href="Product.aspx?id=<%#Eval("id") %>"><%#Eval("tenmay") %></a></div>
            <div class="productprice"><a href="Product.aspx?id=<%#Eval("id") %>"><%#Eval("giaban", "Giá: {0:N0} VNĐ") %></a></div>
            <a href="JavaScript:CartFunc('<%#Eval("id") %>', 1)"><img src="../images/templates/default/btnaddcart.gif" alt="Đặt hàng"/></a>
        </div>
        <div class="pdbottom"></div>
    </ItemTemplate>
</asp:Datalist>
